home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / unicharutil / nsISaveAsCharset.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  152 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISaveAsCharset.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISaveAsCharset_h__
  6. #define __gen_nsISaveAsCharset_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIEntityConverter_h__
  14. #include "nsIEntityConverter.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. #define NS_SAVEASCHARSET_CID { 0xcd233e0, 0x7a86, 0x11d3, { 0x91, 0x5c, 0x0, 0x60, 0x8, 0xa6, 0xed, 0xf6 } }
  22. #define NS_SAVEASCHARSET_CONTRACTID "@mozilla.org/intl/saveascharset;1"
  23.  
  24. /* starting interface:    nsISaveAsCharset */
  25. #define NS_ISAVEASCHARSET_IID_STR "33b87f70-7a9c-11d3-915c-006008a6edf6"
  26.  
  27. #define NS_ISAVEASCHARSET_IID \
  28.   {0x33b87f70, 0x7a9c, 0x11d3, \
  29.     { 0x91, 0x5c, 0x00, 0x60, 0x08, 0xa6, 0xed, 0xf6 }}
  30.  
  31. class NS_NO_VTABLE nsISaveAsCharset : public nsISupports {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISAVEASCHARSET_IID)
  35.  
  36.   enum { mask_Fallback = 255U };
  37.  
  38.   enum { mask_Entity = 768U };
  39.  
  40.   enum { mask_CharsetFallback = 1024U };
  41.  
  42.   enum { mask_IgnorableFallback = 2048U };
  43.  
  44.   enum { attr_FallbackNone = 0U };
  45.  
  46.   enum { attr_FallbackQuestionMark = 1U };
  47.  
  48.   enum { attr_FallbackEscapeU = 2U };
  49.  
  50.   enum { attr_FallbackDecimalNCR = 3U };
  51.  
  52.   enum { attr_FallbackHexNCR = 4U };
  53.  
  54.   enum { attr_EntityNone = 0U };
  55.  
  56.   enum { attr_EntityBeforeCharsetConv = 256U };
  57.  
  58.   enum { attr_EntityAfterCharsetConv = 512U };
  59.  
  60.   enum { attr_CharsetFallback = 1024U };
  61.  
  62.   enum { attr_IgnoreIgnorables = 2048U };
  63.  
  64.   enum { attr_plainTextDefault = 0U };
  65.  
  66.   enum { attr_htmlTextDefault = 259U };
  67.  
  68.   /* readonly attribute string charset; */
  69.   NS_IMETHOD GetCharset(char * *aCharset) = 0;
  70.  
  71.   /* void Init (in string charset, in unsigned long attr, in unsigned long entityVersion); */
  72.   NS_IMETHOD Init(const char *charset, PRUint32 attr, PRUint32 entityVersion) = 0;
  73.  
  74.   /* string Convert (in wstring inString); */
  75.   NS_IMETHOD Convert(const PRUnichar *inString, char **_retval) = 0;
  76.  
  77. };
  78.  
  79. /* Use this macro when declaring classes that implement this interface. */
  80. #define NS_DECL_NSISAVEASCHARSET \
  81.   NS_IMETHOD GetCharset(char * *aCharset); \
  82.   NS_IMETHOD Init(const char *charset, PRUint32 attr, PRUint32 entityVersion); \
  83.   NS_IMETHOD Convert(const PRUnichar *inString, char **_retval); 
  84.  
  85. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  86. #define NS_FORWARD_NSISAVEASCHARSET(_to) \
  87.   NS_IMETHOD GetCharset(char * *aCharset) { return _to GetCharset(aCharset); } \
  88.   NS_IMETHOD Init(const char *charset, PRUint32 attr, PRUint32 entityVersion) { return _to Init(charset, attr, entityVersion); } \
  89.   NS_IMETHOD Convert(const PRUnichar *inString, char **_retval) { return _to Convert(inString, _retval); } 
  90.  
  91. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  92. #define NS_FORWARD_SAFE_NSISAVEASCHARSET(_to) \
  93.   NS_IMETHOD GetCharset(char * *aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
  94.   NS_IMETHOD Init(const char *charset, PRUint32 attr, PRUint32 entityVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(charset, attr, entityVersion); } \
  95.   NS_IMETHOD Convert(const PRUnichar *inString, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Convert(inString, _retval); } 
  96.  
  97. #if 0
  98. /* Use the code below as a template for the implementation class for this interface. */
  99.  
  100. /* Header file */
  101. class nsSaveAsCharset : public nsISaveAsCharset
  102. {
  103. public:
  104.   NS_DECL_ISUPPORTS
  105.   NS_DECL_NSISAVEASCHARSET
  106.  
  107.   nsSaveAsCharset();
  108.  
  109. private:
  110.   ~nsSaveAsCharset();
  111.  
  112. protected:
  113.   /* additional members */
  114. };
  115.  
  116. /* Implementation file */
  117. NS_IMPL_ISUPPORTS1(nsSaveAsCharset, nsISaveAsCharset)
  118.  
  119. nsSaveAsCharset::nsSaveAsCharset()
  120. {
  121.   /* member initializers and constructor code */
  122. }
  123.  
  124. nsSaveAsCharset::~nsSaveAsCharset()
  125. {
  126.   /* destructor code */
  127. }
  128.  
  129. /* readonly attribute string charset; */
  130. NS_IMETHODIMP nsSaveAsCharset::GetCharset(char * *aCharset)
  131. {
  132.     return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134.  
  135. /* void Init (in string charset, in unsigned long attr, in unsigned long entityVersion); */
  136. NS_IMETHODIMP nsSaveAsCharset::Init(const char *charset, PRUint32 attr, PRUint32 entityVersion)
  137. {
  138.     return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140.  
  141. /* string Convert (in wstring inString); */
  142. NS_IMETHODIMP nsSaveAsCharset::Convert(const PRUnichar *inString, char **_retval)
  143. {
  144.     return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146.  
  147. /* End of implementation class template. */
  148. #endif
  149.  
  150.  
  151. #endif /* __gen_nsISaveAsCharset_h__ */
  152.